<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>仓库管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link th:href="@{/animate.min.css}" rel="stylesheet">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
    <script th:src="@{/common.js}"></script>

    <style>

        a{
            cursor: pointer;
        }
    </style>

</head>

<body style="background-color: #F8F8F8;overflow-x: hidden">
<div>

    <!--    顶部-->
    <div class="layui-header" style="background-color: black;">
        <ul class="layui-nav layui-layout-left" style="background-color: black">
            <li class="layui-nav-item"><a href="">仓库管理系统</a></li>
        </ul>
    </div>

    <div style="position: absolute;left: 0;right: 0;top: 0;bottom: 0">
        <div style="display: flex;justify-content: center;margin-top: 10%">
            <div class="animated fadeIn" style="width: 20%;background-color: #fff;box-shadow: 0 0 10px #9F9F9F ;padding:20px">

                <div class="layui-card">
                    <h2 style="text-align: center"
                        class="layui-card-header"><strong style="font-size: 20px">用户登录</strong></h2>
                </div>

                <form class="layui-form" method="post" action="/userController/login">

                    <div class="layui-form-item">
                        <div style="display: flex;justify-content: center">
                            <label class="layui-form-label">工号</label>
                            <div>
                                <input style="width: 78%;border-left: none; border-right: none; border-top: none;
                            border-bottom:1px solid #000000" maxlength="10" type="text" name="account"
                                       class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div style="display: flex;justify-content: center">
                            <label class="layui-form-label">密码</label>
                            <div>
                                <input style="width: 78%;border-left: none; border-right: none; border-top: none; border-bottom: 1px
                             solid #000000" maxlength="20" type="password" name="pwd" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div style="text-align: center;color: red;">
                            <div th:if="${errMsg != null}">
                                <text th:text="${errMsg}"></text>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div style="display: flex;height: 30px;margin-top: 25px;justify-content: center">
                            <button id="loginBtn" type="submit"
                                    style="width: 65%;background-color: #000000;color: white;border: #000000;cursor:
                                    pointer">登录</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>


</div>

<script th:src="@{/layui/jquery-1.11.2.js}"></script>
<script th:src="@{/layui/layui.all.js}" charset="utf-8"></script>
<script>
    $(function () {
        layui.use(['element', 'form', 'table', 'layer'], function () {
            var element = layui.element;
            var form = layui.form;
            var table = layui.table;
            var layer = layui.layer;
        });
    });
</script>
</body>
</html>